package PTA_05_18;

interface USB
{
    void work();
    void stop();
}
class Mouse implements USB
{
    public void work()
    {
        System.out.println("我点点点");
    }
    public void stop()
    {
        System.out.println("我不能点了");
    }
}
class Upan implements USB{
    public void work()
    {
        System.out.println("我存存存");
    }
    public void stop()
    {
        System.out.println("我走了");
    }
}

public class Main3 {
    public static void main(String[] args) {
        USB usb1 = new Mouse();
        usb1.work();
        usb1.stop();
        USB[] usb2 = new USB[2];
        usb2[0] = new Upan();
        usb2[1] = new Mouse();
        for (int i = 0; i < usb2.length; i++) {
            usb2[i].work();
            usb2[i].stop();
        }
    }
}
